package com.dragon.mmochat.model.battle;

import java.io.Serializable;

import com.dragon.mmochat.model.enumType.MmochatBattleOrderType;

//战斗指令
public class MmochatBattleOrder implements Serializable {
	private static final long serialVersionUID = 8966401629788349137L;
	private MmochatBattleOrderType type;
	private int keepRound = 1; // 保持回合数
	
	public MmochatBattleOrder(){
	}

	public MmochatBattleOrder(MmochatBattleOrderType type) {
		this.type = type;
	}

	public MmochatBattleOrderType getType() {
		return type;
	}

	public void setType(MmochatBattleOrderType type) {
		this.type = type;
	}

	public int getKeepRound() {
		return keepRound;
	}

	public void setKeepRound(int keepRound) {
		this.keepRound = keepRound;
	}

	public void decreaseKeepRound() {
		keepRound--;
		keepRound = Math.max(0, keepRound);
	}

}
